From 9ec4fb60f20ec3bcf18e120b5851d4aa2c5ca570 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 13 Aug 2009 09:45:04 -0400 Subject: [PATCH] Don't return uninitialized pointers This was giving me segfaults somewhere else. --- gtk/gtkiconview.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c index 240e3739cd..c517b0fb90 100644 --- a/gtk/gtkiconview.c +++ b/gtk/gtkiconview.c @@ -3503,11 +3503,11 @@ gtk_icon_view_get_item_at_coords (GtkIconView *icon_view, } } - if (only_in_cell) - return NULL; - if (cell_at_pos) *cell_at_pos = NULL; + + if (only_in_cell) + return NULL; } return item; -- 2.30.2